export const getTags = [
  { id: '1', name: '标签页1' },
  { id: '2', name: '标签页2' },
  { id: '3', name: '标签页3' },
  { id: '4', name: '标签页4' },
  { id: '5', name: '标签页5' },
  { id: '6', name: '标签页6' },
  { id: '7', name: '标签页7' },
  { id: '8', name: '标签页8' },
  { id: '9', name: '标签页9' },
];

export const getAuthors = (req, res) => {
  const result = {
    list: [
      {
        id: 1,
        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
        name: '张三',
        status: 1,
        recordTime: '2018-01-01 19:12',
      },
      {
        id: 2,
        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
        name: '李四',
        status: 0,
        recordTime: '2018-01-02 19:12',
      },
      {
        id: 3,
        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
        name: '王五',
        status: 1,
        recordTime: '2018-01-03 19:12',
      },
    ],
    pagination: {
      total: 100,
      pageSize: 5,
    },
  };

  return res.json(result);
};
export const getOrders = (req, res) => {
  const list = [
    {
      ordersId: '10001',
      goodsName: '唐诗三百首',
      ordersType: 0,
      userPhone: '13888888888 ',
      franName: '西湖黄龙店',
      ordersSts: 0,
      payCash: 10.0,
      createTime: '2018-03-24 12:15:48',
    },
    {
      ordersId: '10002',
      goodsName: '唐诗三百首',
      ordersType: 0,
      userPhone: '13888888888 ',
      franName: '西湖黄龙店',
      ordersSts: 0,
      payCash: 10.0,
      createTime: '2018-03-24 12:15:48',
    },
    {
      ordersId: '10003',
      goodsName: '唐诗三百首',
      ordersType: 0,
      userPhone: '13888888888 ',
      franName: '西湖黄龙店',
      ordersSts: 0,
      payCash: 10.0,
      createTime: '2018-03-24 12:15:48',
    },
    {
      ordersId: '10004',
      goodsName: '唐诗三百首',
      ordersType: 0,
      userPhone: '13888888888 ',
      franName: '西湖黄龙店',
      ordersSts: 0,
      payCash: 10.0,
      createTime: '2018-03-24 12:15:48',
    },
    {
      ordersId: '10005',
      goodsName: '唐诗三百首',
      ordersType: 0,
      userPhone: '13888888888 ',
      franName: '西湖黄龙店',
      ordersSts: 0,
      payCash: 10.0,
      createTime: '2018-03-24 12:15:48',
    },
  ];
  const result = {
    list,
    pagination: {},
  };

  res.json(result);
};

export const getCoupons = (req, res) => {
  const list = [
    {
      couponId: 10000,
      couponName: '满200减50元',
      couponType: 0,
      requiredAmt: 200,
      expireTime: '2018-3-28',
      couponSts: 1,
      appType: 1,
    },
    {
      couponId: 10001,
      couponName: '满200减50元',
      couponType: 0,
      requiredAmt: 200,
      expireTime: '2018-3-28',
      couponSts: 1,
      appType: 1,
    },
    {
      couponId: 10002,
      couponName: '满200减50元',
      couponType: 0,
      requiredAmt: 200,
      expireTime: '2018-3-28',
      couponSts: 1,
      appType: 1,
    },
    {
      couponId: 10003,
      couponName: '满200减50元',
      couponType: 0,
      requiredAmt: 200,
      expireTime: '2018-3-28',
      couponSts: 1,
      appType: 1,
    },
  ];

  const result = {
    list,
    pagination: {},
  };

  res.json(result);
};

export const getMarketingData = (req, res) => {
  const list = [
    {
      adminId: 1,
      adminName: '管理员',
      actiId: 1,
      marketingType: 1,
      marketingSts: 0,
      marketingDetails: '测试',
      createTime: '2018-04-12 15:30:00',
    },
    {
      adminId: 2,
      adminName: '管理员',
      actiId: 1,
      marketingType: 1,
      marketingSts: 1,
      marketingDetails: '测试',
      createTime: '2018-04-12 15:30:00',
    },
    {
      adminId: 3,
      adminName: '管理员',
      actiId: 1,
      marketingType: 1,
      marketingSts: 2,
      marketingDetails: '测试',
      createTime: '2018-04-12 15:30:00',
    },
    {
      adminId: 4,
      adminName: '管理员',
      actiId: 1,
      marketingType: 1,
      marketingSts: 0,
      marketingDetails: '测试',
      createTime: '2018-04-12 15:30:00',
    },
  ];

  const result = {
    list,
    pagination: {},
  };

  res.json(result);
};

export const getFrans = (req, res) => {
  const list = [
    {
      franId: 1,
      franName: '加盟商',
      franUser: '张三',
      franPhone: '13800010001',
      franAddr: '北京大学',
      mCode: 'M121212',
      franSts: 0,
      commRatio: 33,
      createTime: '2018-04-12 15:30:00',
      ordersCnt: 12121,
      salesAmt: 32323.33,
      settledAmt: 12121.33,
      userCnt: 1212,
    },
    {
      franId: 2,
      franName: '加盟商',
      franUser: '张三',
      franPhone: '13800010001',
      franAddr: '北京大学',
      mCode: 'M121212',
      franSts: 0,
      commRatio: 33,
      createTime: '2018-04-12 15:30:00',
      ordersCnt: 12121,
      salesAmt: 32323.33,
      settledAmt: 12121.33,
      userCnt: 1212,
    },
    {
      franId: 3,
      franName: '加盟商',
      franUser: '张三',
      franPhone: '13800010001',
      franAddr: '北京大学',
      mCode: 'M121212',
      franSts: 0,
      commRatio: 33,
      createTime: '2018-04-12 15:30:00',
      ordersCnt: 12121,
      salesAmt: 32323.33,
      settledAmt: 12121.33,
      userCnt: 1212,
    },

    {
      franId: 4,
      franName: '加盟商',
      franUser: '张三',
      franPhone: '13800010001',
      franAddr: '北京大学',
      mCode: 'M121212',
      franSts: 0,
      commRatio: 33,
      createTime: '2018-04-12 15:30:00',
      ordersCnt: 12121,
      salesAmt: 32323.33,
      settledAmt: 12121.33,
      userCnt: 1212,
    },
  ];
  const result = {
    list,
    pagination: {},
  };
  res.json(result);
};

export const getGoods = (req, res) => {
  const list = [
    {
      goodsId: 10000,
      goodsImg: 'https://gw.alipayobjects.com/zos/rmsportal/dURIMkkrRFpPgTuzkwnB.png',
      goodsName: '遥控汽车',
      catName: '汽车',
      discountPrice: 0.0,
      goodsSts: 1,
      weight: 1,
    },
    {
      goodsId: 10001,
      goodsImg: 'https://gw.alipayobjects.com/zos/rmsportal/dURIMkkrRFpPgTuzkwnB.png',
      goodsName: '遥控汽车',
      catName: '汽车',
      discountPrice: 0.0,
      goodsSts: 1,
      weight: 1,
    },
    {
      goodsId: 10002,
      goodsImg: 'https://gw.alipayobjects.com/zos/rmsportal/dURIMkkrRFpPgTuzkwnB.png',
      goodsName: '遥控汽车',
      catName: '汽车',
      discountPrice: 0.0,
      goodsSts: 1,
      weight: 1,
    },
    {
      goodsId: 10003,
      goodsImg: 'https://gw.alipayobjects.com/zos/rmsportal/dURIMkkrRFpPgTuzkwnB.png',
      goodsName: '遥控汽车',
      catName: '汽车',
      discountPrice: 0.0,
      goodsSts: 1,
      weight: 1,
    },
  ];
  const result = {
    list,
    pagination: {},
  };
  res.json(result);
};
export const getCats = (req, res) => {
  const list = [
    {
      catId: 10000,
      catName: '汽车',
      weight: 1,
    },
    {
      catId: 10001,
      catName: '汽车',
      weight: 10,
    },
    {
      catId: 10002,
      catName: '汽车',
      weight: 20,
    },
    {
      catId: 10003,
      catName: '汽车',
      weight: 90,
    },
  ];
  const result = {
    list,
    pagination: {},
  };
  res.json(result);
};
export default {
  getTags,
  getAuthors,
  getOrders,
  getCoupons,
  getMarketingData,
  getFrans,
  getGoods,
  getCats,
};
